#include <stdio.h>

int main(void)
{

    int i =0;
    int l =1;

    char ch;
    while ((ch = getchar()) != EOF) {
       if (0 == i++) printf("#%-2d ", l++);
        putchar(ch);

        if (ch == '\n') printf("#%-2d ", l++);
    }

    putchar('\n');
    return 0;

}
